package cn.wolfcode.wolf2w.controller;

import cn.wolfcode.wolf2w.redis.service.IRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/redis")
public class RedisController {

    @Autowired
    private IRedisService redisService;

    @PostMapping("/list")
    public Object list(String readId){
        return redisService.incrementRead(readId);
    }
}
